
const TokenKey = 'Admin-Token';
const LOGIN_USERNAME_id = 'LOGIN_USERNAME_id';
const memberId = 'memberId';
const partnerId = 'partnerId'
const roleId = 'roleId'
const LOGIN_USERNAME = 'LOGIN_USERNAME'
export function getToken() {
  return sessionStorage.getItem(TokenKey)
  // return Cookies.get(TokenKey)
}

export function setToken(token) {
  return sessionStorage.setItem(TokenKey, token)
  // return Cookies.set(TokenKey, token)
}

export function removeToken() {
  localStorage.removeItem(LOGIN_USERNAME)
  sessionStorage.removeItem(LOGIN_USERNAME_id)
  sessionStorage.removeItem(memberId)
  sessionStorage.removeItem(partnerId)
  sessionStorage.removeItem(roleId)
  return sessionStorage.removeItem(TokenKey)
  

  // return Cookies.remove(TokenKey)
}